var uid = location.search.substr(location.search.indexOf('=') + 1)
var edit = new Vue({
  el: "#editinfo",
  data: {
    elist: getUserById()
  },
  methods: {
    updateVerifiedById(id) {
      $.ajax({
        url: 'http://47.102.45.219:8080/Appoint/editVerifiedServlet/updateVerified',
        async: false,
        dataType: 'JSON',
        type: 'post',
        data: $('#edit').serialize(),
        success: function (data) {
          if (data.statu) {
            xadmin.close();
            xadmin.father_reload();
          } else {
            alert(data.statu)
          }
        }
      })
    }
  }
})



function getUserById() {
  //alert(location.search)
  //alert(uid)
  var list
  $.ajax({
    url: 'http://47.102.45.219:8080/Appoint/editVerifiedServlet/getVerifiedById',
    data: {
      "id": uid
    },
    dataType: 'json',
    async: false,
    success: function (data) {
      // alert("a")
      list = data.data
      // alert(list)

    }
  })
  return list
}